/* 
 * File:   VisibleStackSizeParameterMemento.cpp
 * Author: Gab'z
 * 
 * Created on 29 mai 2012, 10:58
 */

#include "VisibleStackSizeParameterMemento.h"
#include "../command/UndoableRedoableCommand.h"

namespace calculator {

    VisibleStackSizeParameterMemento::VisibleStackSizeParameterMemento(
            UndoableRedoableCommand* undoableRedoableCommand,
            const Integer* integer,
            int visibleStackSize) :
    Memento(undoableRedoableCommand),
    _integer(integer),
    _visibleStackSize(visibleStackSize) {
    }

    VisibleStackSizeParameterMemento::VisibleStackSizeParameterMemento(const VisibleStackSizeParameterMemento& memento) :
    Memento(memento._undoableRedoableCommand),
    _integer(memento._integer),
    _visibleStackSize(memento._visibleStackSize) {
    }

    VisibleStackSizeParameterMemento::~VisibleStackSizeParameterMemento() {
        delete _integer;
    }
}
